<?php


trait TestTrait
{
    public function testMethod()
    {
        echo "This is a test method from the trait.";
    }
}
trait ExtendTrait
{
    public function print()
    {
        echo "This is a print method from the extend trait.";
    }
}
class TestBase
{
    public function testMethod()
    {
        echo "This is a test method from the base.";
    }
}
class TestClass 
{
    use TestTrait, ExtendTrait;
    //     public function testMethod()
    //     {
    //         echo "This is a test method from the class.";
    //     }
    // }
}

$obj = new TestClass();
$obj->testMethod();
$obj->print();
